package com.chenglu.android.message;

import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;

import com.chenglu.android.R;
import com.chenglu.android.classify.adapter.ClassifyTwoAdapter;
import com.chenglu.android.common.base.BaseMvpFragment;
import com.gyf.immersionbar.ImmersionBar;

import butterknife.BindView;


/**
 * @author: lyj
 * @Created: by Copyright 2023/3/6 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 * @Description：分类
 */
public class MessageFragment extends BaseMvpFragment {

    @BindView(R.id.rv_message_list)
    RecyclerView rvMessageList;
    @BindView(R.id.tv_no_data)
    TextView tvNoData;
    @BindView(R.id.ll_loading_no_data)
    LinearLayout llLoadingNoData;
    @BindView(R.id.ll_loading_data)
    LinearLayout llLoadingData;
    private ClassifyTwoAdapter classifyTwoAdapter;


    public static MessageFragment newInstance() {
        MessageFragment messageFragment = new MessageFragment();
        return messageFragment;
    }

    @Override
    protected void initView() {
        llLoadingNoData.setVisibility(View.VISIBLE);
        tvNoData.setText("暂无消息~");

    }


    @Override
    protected int getLayoutId() {
        return R.layout.fragment_message;
    }


    @Override
    public void onResume() {
        super.onResume();
        ImmersionBar.with(this)
                .fitsSystemWindows(false)
                .autoDarkModeEnable(true)
                .fullScreen(true)
                .statusBarDarkFont(true)
                .init();


    }

    @Override
    public void onError(String errorMsg) {
//        isLogin = false;
//        SPUtils.setBoolean("ISLOGIN", false);
//        showEmptyView("暂无数据");
//        showXPopupView(context, "提示", "登录已过期,请重新登录", "登录");
    }


}
